<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>新增试题</title>
<link rel="stylesheet" href="${pageContext.request.contextPath }/static/css/addquestion.css" />
</head>
<body>
&nbsp;&nbsp;系统设置 >> 题库管理设置 >> 新增试题 
		<div>
		
			<form enctype="multipart/form-data" method="post" action="${pageContext.request.contextPath }/saveQuestion.html">
			<ul>
				<li>
					试题标题：<input class="ip01" type="text" name="topic_name" value="" />
							<span id="sp01" class="span02">*</span>
					试题类型：
					<select id="topic_type" name="topic_type">
		            	<c:if test="${typeList != null }">
								   <option value="0">--请选择--</option>
								   <c:forEach var="type" items="${typeList}">
								   		<option <c:if test="${type.id == topic_type }">selected="selected"</c:if>
								   		value="${type.id}">${type.t_type}</option>
								   </c:forEach>
								</c:if>
		        	</select>
					<span class="span02">*</span>
				</li>
				<li>
					所属部门：
					<select id="department_id" name="department_id">
			            <c:if test="${depList != null }">
									   <option value="0">--请选择--</option>
									   <c:forEach var="dep" items="${depList}">
									   		<option <c:if test="${dep.id == department_id }">selected="selected"</c:if>
									   		value="${dep.id}">${dep.oz_name}</option>
									   </c:forEach>
									</c:if>
			        </select>
					<span id="sp01" class="span02">*</span>
					试题级别：
					<select id="topic_rank" name="topic_rank">
		            	<c:if test="${rankList != null }">
								   <option value="0">--请选择--</option>
								   <c:forEach var="rank" items="${rankList}">
								   		<option <c:if test="${rank.id == topic_rank }">selected="selected"</c:if>
								   		value="${rank.id}">${rank.t_rank}</option>
								   </c:forEach>
								</c:if>
		        	</select>
					<span class="span02">*</span>
				</li>
				<li>
					出&nbsp;&nbsp;题&nbsp;&nbsp;人：<input type="text" name="topic_creater" value="" />
						<span id="sp01"></span>
					&nbsp;&nbsp;出题时间：<input type="date" name="topic_time" />
				</li>
				<li>
					试题内容：
					<textarea rows="5" cols="100" name="topic_content">
						
					</textarea>
				</li>
				<li>
					备&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;注：
					<textarea rows="5" cols="100" name="topic_remark">
						
					</textarea>
				</li>
				<li>
					试题附件：<input type="file" name="accPath" id="accPath" />
					
				</li>
				<li>
					答案附件：<input type="file" name="accPath" id="accPath" />
				</li>
				<li id="li">
					<input class="input" type="submit" id="addquestion" name="addquestion" value="保存" />
					<input class="input" type="button" id="back" name="back" onclick="javascript:history.back()" value="返回" />
				</li>
			</ul>
			</form>
		</div>
</body>
</html>